package com.hckjsec.cloud.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 小程序订阅消息发送日志对象 applets_business_template_log
 * 
 * @author cyt
 * @date 2021-08-25
 */
public class AppletsBusinessTemplateLog implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 配置id */
    @Excel(name = "配置id")
    private Long configId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 模板id */
    @Excel(name = "模板id")
    private String templateid;

    /** 应用场景 */
    @Excel(name = "应用场景")
    private String templatetype;

    /** 发送场景 1.小程序，2.公众号等 */
    @Excel(name = "发送场景 1.小程序，2.公众号等")
    private String sendtype;

    /** openid */
    @Excel(name = "openid")
    private String openid;

    /** 接收人 */
    @Excel(name = "接收人")
    private String touser;

    /** 案件号 */
    @Excel(name = "案件号")
    private String businessid;

    /** 发送信息 */
    @Excel(name = "发送信息")
    private String paramdata;

    /** 返回状态 */
    @Excel(name = "返回状态")
    private String errcode;

    /** 返回信息 */
    @Excel(name = "返回信息")
    private String errmsg;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operatortime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setTemplateid(String templateid) 
    {
        this.templateid = templateid;
    }

    public String getTemplateid() 
    {
        return templateid;
    }
    public void setTemplatetype(String templatetype) 
    {
        this.templatetype = templatetype;
    }

    public String getTemplatetype() 
    {
        return templatetype;
    }
    public void setSendtype(String sendtype) 
    {
        this.sendtype = sendtype;
    }

    public String getSendtype() 
    {
        return sendtype;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setTouser(String touser) 
    {
        this.touser = touser;
    }

    public String getTouser() 
    {
        return touser;
    }
    public void setBusinessid(String businessid) 
    {
        this.businessid = businessid;
    }

    public String getBusinessid() 
    {
        return businessid;
    }
    public void setParamdata(String paramdata) 
    {
        this.paramdata = paramdata;
    }

    public String getParamdata() 
    {
        return paramdata;
    }
    public void setErrcode(String errcode) 
    {
        this.errcode = errcode;
    }

    public String getErrcode() 
    {
        return errcode;
    }
    public void setErrmsg(String errmsg) 
    {
        this.errmsg = errmsg;
    }

    public String getErrmsg() 
    {
        return errmsg;
    }
    public void setOperatortime(Date operatortime) 
    {
        this.operatortime = operatortime;
    }

    public Date getOperatortime() 
    {
        return operatortime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("configId", getConfigId())
            .append("deptId", getDeptId())
            .append("templateid", getTemplateid())
            .append("templatetype", getTemplatetype())
            .append("sendtype", getSendtype())
            .append("openid", getOpenid())
            .append("touser", getTouser())
            .append("businessid", getBusinessid())
            .append("paramdata", getParamdata())
            .append("errcode", getErrcode())
            .append("errmsg", getErrmsg())
            .append("operatortime", getOperatortime())
            .toString();
    }
}
